package cn.krui.project.bean.simpleshopsetting;

import java.util.List;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotNull;
/**
 * createor: zc
 * email: zc8023zs@163.com
 * create_time: 2020/4/8 16:37:56
 * 分离出查询实体
 */
@ApiModel(value = "qr_category", description = "商品类型")
@TableName(value = "qr_category")
public class category_view {
	@ApiModelProperty(value = "主键")
	@TableId(type = IdType.AUTO,value = "id")
	@NotNull(message = "主键不能为空")
	private Integer id;
	@ApiModelProperty(value = "分类名称")
	@TableField(value="name")
	private String name;
	@ApiModelProperty(value = "关键字")
	@TableField(value="keywords")
	private String keywords;
	@ApiModelProperty(value = "描述")
	@TableField(value="front_desc")
	private String front_desc;
	@ApiModelProperty(value = "父节点")
	@TableField(value="parent_id")
	private Integer parent_id;
	@ApiModelProperty(value = "排序")
	@TableField(value="sort_order")
	private Long sort_order;
	@ApiModelProperty(value = "首页展示排序")
	@TableField(value="show_index")
	private Long show_index;
	@ApiModelProperty(value = "显示:是=1 否=0")
	@TableField(value="is_show")
	private Long is_show;
	@ApiModelProperty(value = "banner图片")
	@TableField(value="banner_url")
	private String banner_url;
	@ApiModelProperty(value = "icon链接")
	@TableField(value="icon_url")
	private String icon_url;
	@ApiModelProperty(value = "图片")
	@TableField(value="img_url")
	private String img_url;
	@ApiModelProperty(value = "手机banner")
	@TableField(value="wap_banner_url")
	private String wap_banner_url;
	@ApiModelProperty(value = "级别:L1=L1 L2=L2")
	@TableField(value="level")
	private String level;
	@ApiModelProperty(value = "类别")
	@TableField(value="type")
	private Integer type;
	@ApiModelProperty(value = "名称描述")
	@TableField(value="front_name")
	private String front_name;
	@ApiModelProperty(value = "树形子集")
	@TableField(exist = false)
	private List<category_view> children;

 
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
 
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
 
	public String getKeywords() {
		return keywords;
	}
	public void setKeywords(String keywords) {
		this.keywords = keywords;
	}
 
	public String getFront_desc() {
		return front_desc;
	}
	public void setFront_desc(String front_desc) {
		this.front_desc = front_desc;
	}
 
	public Integer getParent_id() {
		return parent_id;
	}
	public void setParent_id(Integer parent_id) {
		this.parent_id = parent_id;
	}
 
	public Long getSort_order() {
		return sort_order;
	}
	public void setSort_order(Long sort_order) {
		this.sort_order = sort_order;
	}
 
	public Long getShow_index() {
		return show_index;
	}
	public void setShow_index(Long show_index) {
		this.show_index = show_index;
	}
 
	public Long getIs_show() {
		return is_show;
	}
	public void setIs_show(Long is_show) {
		this.is_show = is_show;
	}
 
	public String getBanner_url() {
		return banner_url;
	}
	public void setBanner_url(String banner_url) {
		this.banner_url = banner_url;
	}
 
	public String getIcon_url() {
		return icon_url;
	}
	public void setIcon_url(String icon_url) {
		this.icon_url = icon_url;
	}
 
	public String getImg_url() {
		return img_url;
	}
	public void setImg_url(String img_url) {
		this.img_url = img_url;
	}
 
	public String getWap_banner_url() {
		return wap_banner_url;
	}
	public void setWap_banner_url(String wap_banner_url) {
		this.wap_banner_url = wap_banner_url;
	}
 
	public String getLevel() {
		return level;
	}
	public void setLevel(String level) {
		this.level = level;
	}
 
	public Integer getType() {
		return type;
	}
	public void setType(Integer type) {
		this.type = type;
	}
 
	public String getFront_name() {
		return front_name;
	}
	public void setFront_name(String front_name) {
		this.front_name = front_name;
	}
 
	public List<category_view> getChildren(){
		return children;
	}
	public void setChildren(List<category_view> children){
		this.children = children;
	}

}